﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Migrator.Packets;
using Migrator.Entities;

namespace Migrator.Events
{
    /// <summary>
    /// Arguments for the event BeforePacketSent
    /// </summary>
    public class BeforePacketSentEventArgs : EventArgs
    {
        public BeforePacketSentEventArgs(IPPacket packet)
        {
            this.Packet = packet;
            this.Cancel = false;
        }

        public IPPacket Packet
        {
            get;
            protected set;
        }

        /// <summary>
        /// Cancels the send.
        /// </summary>
        public bool Cancel
        {
            get;
            set;
        }
    }
}
